package org.lanqiao.bean;


import java.io.Serializable;

/**
 * user
 * @author 
 */
public class User implements Serializable {
    private Integer id;

    private String password;

    private String name;

    private String sex;

    private String email;

    private String telphone;

    private Integer workTime;

    private Integer heduBackground;

    private Integer workNtype;

    private Integer state;

    private String date;

    private String b1;

    private String b2;

    private String b3;

    private Integer b4;

    private static final long serialVersionUID = 1L;



	public User( String name, String sex, String telphone, String email,Integer workTime, Integer heduBackground,
			Integer workNtype,Integer id) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.email = email;
		this.telphone = telphone;
		this.workTime = workTime;
		this.heduBackground = heduBackground;
		this.workNtype = workNtype;
		
	}


	public User(Integer id, String password, String email) {
		super();
		this.id = id;
		this.password = password;
		this.email = email;
	}

	public Integer getId() {
        return id;
    }

    public User() {
		super();
	}

	public User(Integer id, String password, String name, String sex, String email, String telphone, Integer workTime,
			Integer heduBackground, Integer workNtype, Integer state, String date, String b1, String b2, String b3,
			Integer b4) {
		super();
		this.id = id;
		this.password = password;
		this.name = name;
		this.sex = sex;
		this.email = email;
		this.telphone = telphone;
		this.workTime = workTime;
		this.heduBackground = heduBackground;
		this.workNtype = workNtype;
		this.state = state;
		this.date = date;
		this.b1 = b1;
		this.b2 = b2;
		this.b3 = b3;
		this.b4 = b4;
	}

	public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public Integer getWorkTime() {
        return workTime;
    }

    public void setWorkTime(Integer workTime) {
        this.workTime = workTime;
    }

    public Integer getHeduBackground() {
        return heduBackground;
    }

    public void setHeduBackground(Integer heduBackground) {
        this.heduBackground = heduBackground;
    }

    public Integer getWorkNtype() {
        return workNtype;
    }

    public void setWorkNtype(Integer workNtype) {
        this.workNtype = workNtype;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    public String getB3() {
        return b3;
    }

    public void setB3(String b3) {
        this.b3 = b3;
    }

    public Integer getB4() {
        return b4;
    }

    public void setB4(Integer b4) {
        this.b4 = b4;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getTelphone() == null ? other.getTelphone() == null : this.getTelphone().equals(other.getTelphone()))
            && (this.getWorkTime() == null ? other.getWorkTime() == null : this.getWorkTime().equals(other.getWorkTime()))
            && (this.getHeduBackground() == null ? other.getHeduBackground() == null : this.getHeduBackground().equals(other.getHeduBackground()))
            && (this.getWorkNtype() == null ? other.getWorkNtype() == null : this.getWorkNtype().equals(other.getWorkNtype()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()))
            && (this.getB3() == null ? other.getB3() == null : this.getB3().equals(other.getB3()))
            && (this.getB4() == null ? other.getB4() == null : this.getB4().equals(other.getB4()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getTelphone() == null) ? 0 : getTelphone().hashCode());
        result = prime * result + ((getWorkTime() == null) ? 0 : getWorkTime().hashCode());
        result = prime * result + ((getHeduBackground() == null) ? 0 : getHeduBackground().hashCode());
        result = prime * result + ((getWorkNtype() == null) ? 0 : getWorkNtype().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        result = prime * result + ((getB3() == null) ? 0 : getB3().hashCode());
        result = prime * result + ((getB4() == null) ? 0 : getB4().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", password=").append(password);
        sb.append(", name=").append(name);
        sb.append(", sex=").append(sex);
        sb.append(", email=").append(email);
        sb.append(", telphone=").append(telphone);
        sb.append(", workTime=").append(workTime);
        sb.append(", heduBackground=").append(heduBackground);
        sb.append(", workNtype=").append(workNtype);
        sb.append(", state=").append(state);
        sb.append(", date=").append(date);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", b3=").append(b3);
        sb.append(", b4=").append(b4);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}